package org.hibernate.dialect.unique;

import org.hibernate.boot.Metadata;
import org.hibernate.dialect.Dialect;
import org.hibernate.dialect.unique.DefaultUniqueDelegate;
import org.hibernate.mapping.UniqueKey;

public class SqliteUniqueDelegate extends DefaultUniqueDelegate {
	/**
	 * Constructs SqliteUniqueDelegate
	 *
	 * @param dialect The dialect for which we are handling unique constraints
	 */
	public SqliteUniqueDelegate(Dialect dialect) {
		super(dialect);
	}

	/**
	 * SQLite do not support 'alter table' to add constraints.
	 */
	@Override
	public String getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey, Metadata metadata) {
		return "";
	}
}
